package com.xuedakun.xasdk.net.okhttp.upload;

import java.io.File;
import java.util.Map;

/**
 * Created by xuedakun on 2017/6/6 17:11
 * 上传任务model，一个任务对应一个文件上传
 *
 * @version : v1.0
 * @project : xasdk
 * @Email : dakun611@Gmail.com
 */

public class UploadTask {

    /**
     * 上传监听
     */
    private IUploadListener uploadListener;

    /**
     * 上传地址
     */
    private String url;

    /**
     * 任务名称
     */
    private String key;

    /**
     * 本地文件地址
     */
    private File file;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 组名称
     */
    private String groupType;

    /**
     * 请求头部
     */
    private Map<String, String> headers;

    /**
     * 携带的参数
     */
    private Map<String, Object> arguments;

    public IUploadListener getUploadListener() {
        return uploadListener;
    }

    public void setUploadListener(IUploadListener uploadListener) {
        this.uploadListener = uploadListener;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public String getGroupType() {
        return groupType;
    }

    public void setGroupType(String groupType) {
        this.groupType = groupType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Map<String, Object> getArguments() {
        return arguments;
    }

    public void setArguments(Map<String, Object> arguments) {
        this.arguments = arguments;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }
}
